<!-- $Id: goods_info.htm 17126 2010-04-23 10:30:26Z  $ -->
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,selectzone.js,colorselector.js"}
<script type="text/javascript" src="../js/calendar.php?lang={$cfg_lang}"></script>
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />

{if $warning}
<ul style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
  <li style="border: 1px solid #CC0000; background: #FFFFCC; padding: 10px; margin-bottom: 5px;" >{$warning}</li>
</ul>
{/if}

<!-- start goods form -->
<div class="tab-div">
      <!-- tab body -->
    <div id="tabbody-div">
      <form enctype="multipart/form-data" action="projects.php" method="post" name="theForm" onsubmit="return validate();">
        <!-- 最大文件限制 -->
        <input type="hidden" name="MAX_FILE_SIZE" value="2097152" />
        <!-- 通用信息 -->
        <table width="90%" id="general-table" align="center">
          <tr>
            <td class="label">Project Subject</td>
            <td><input type="text" name="project_subject" value="{$project.subject}" style="float:left;color:{$goods_name_color};" size="30" />
            </td>
          </tr>
		  <tr>
            <td class="label">User</td>
            <td>
			<select id="user_id" name="user_id">
			{foreach from=$users item=user}
			<option value="{$user.user_id}">{$user.user_name}</option>
			{/foreach}
			</select>
			<script>
				document.getElementById("user_id").value="{$project.user_id}";
			</script>
            </td>
          </tr>
          <tr>
            <td class="label">Looking for</td>
            <td>
			<select id="trainertype_id" name="trainer_type">
			{foreach from=$trainertype item=trainertype}
			<option value="{$trainertype.num}">{$trainertype.trainerType}</option>
			{/foreach}
			</select>
			<script>
				document.getElementById("trainertype_id").value="{$project.trainerType}";
			</script>
            </td>
          </tr>
		  <tr>
            <td class="label">Training type</td>
            <td><select id="trainingtype_id" name="training_type" >
			{foreach from=$trainingtype item=trainingtype}
			<option value="{$trainingtype.num}">{$trainingtype.trainingType}</option>
			{/foreach}
			</select>
			<script>
				document.getElementById("trainingtype_id").value="{$project.trainingType}";
			</script>
            </td>
          </tr>
		  <tr>
            <td class="label">How many training sessions</td>
            <td><select id="sessionstype_id" name="session_type">
			{foreach from=$sessionstype item=sessionstype}
			<option value="{$sessionstype.num}">{$sessionstype.sessionType}</option>
			{/foreach}
			</select>
			<script>
				document.getElementById("sessionstype_id").value="{$project.sessions}";
			</script>
            </td>
          </tr>
		  <tr>
            <td class="label">Length per session</td>
            <td><select id="sessionlength_id" name="session_length">
			{foreach from=$sessionlength item=sessionlength}
			<option value="{$sessionlength.num}">{$sessionlength.lengthType}</option>
			{/foreach}
			</select>
			<script>
				document.getElementById("sessionlength_id").value="{$project.length}";
			</script>
            </td>
          </tr>
		  <tr>
            <td class="label">Training budget</td>
            <td><select id="budget_id" name="budget_type">
			{foreach from=$budget item=budget}
			<option value="{$budget.num}">{$budget.budgetType}</option>
			{/foreach}
			</select>
			<script>
				document.getElementById("budget_id").value="{$project.budget}";
			</script>
            </td>
          </tr>
		  <tr>
            <td class="label">Quoting closes</td>
            <td><select id="quoting_id" name="quoting_type">
			{foreach from=$quoting item=quoting}
			<option value="{$quoting.num}">{$quoting.quotingType}</option>
			{/foreach}
			</select>
			<script>
				document.getElementById("quoting_id").value="{$project.quoting}";
			</script>
            </td>
          </tr>
		  <tr>
            <td class="label">City/Town</td>
            <td><input type="text" name="city_town" value="{$project.city}" style="float:left;color:{$goods_name_color};" size="30" /></td>
          </tr>
		  <tr>
            <td class="label">How many friends do you intend to bring</td>
            <td><select id="friends_id" name="friends_num">
			{foreach from=$friendsnum item=friend}
			<option value="{$friend.num}">{$friend.friendsnum}</option>
			{/foreach}
			</select>
			<script>
				document.getElementById("friends_id").value="{$project.friends}";
			</script>
            </td>
          </tr>
          <tr>
            <td class="label">Details about your training goals</td>
            <td><input type="text" name="project_details" value="{$project.content}" style="float:left;color:{$goods_name_color};" size="30" />
            </td>
          </tr>
		  <tr>
            <td class="label">Apply for Feature or Not</td>
			<td><input type="radio" name="feature_flag" value="1" />Apply
			<input type="radio" name="feature_flag" value="0" />Not</td>
          </tr>		  
        </table>

        <div class="button-div">
          <input type="hidden" name="goods_id" value="{$goods.goods_id}" />
          {if $code neq ''}
          <input type="hidden" name="extension_code" value="{$code}" />
          {/if}
          <input type="submit" value="{$lang.button_submit}" class="button" />
          <input type="reset" value="{$lang.button_reset}" class="button" />
        </div>
        <input type="hidden" name="act" value="act_add_project" />
      </form>
    </div>
</div>
<!-- end goods form -->
{include file="pagefooter.htm"}